/*
 * @Descripttion: 登录接口
 * @version: 
 * @Author: hzx
 * @Date: 2021-03-25 12:28:19
 * @LastEditors: hzx
 * @LastEditTime: 2021-03-25 16:45:43
 */
import { get, post} from '@/utils/request'


export async function studentLogin(data) {
  
    let [response, error] = await post(`/user/studentLogin`,{...data});
    return response !== null ? response : error
}

export async function teacherLogin(data) {
    let [response, error] = await post(`/user/teacherLogin`,{...data});
    return response !== null ? response : error
}